var e = require;
var t = module;
var o = exports;
var n = o;
Object.defineProperty(n, "__esModule", {value: !0});
var i = e("ConfigGameData"),
    a = (function () {
        function e(e) {
            (this.currentDistance = 0), (this.currentDistance = Math.floor(e * i.default.SNAKE_BODY_DANCE));
        }
        return (
            (e.prototype.addBodyDistance = function (e) {
                var t = Math.floor(e * i.default.SNAKE_BODY_DANCE),
                    o = t - this.currentDistance;
                return this.currentDistance < t && (this.currentDistance = t), o;
            }),
            e
        );
    })();
n.default = a;
